<%--

    Copyright (C) 2010 Neofonie GmbH

    This programm is free software; you can redistribute it and/or modify
    it under the terms of the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

--%>

<%@ include file="../include/common_jsp_header.jsp"%>

<c:set var="currentSubSite" value="Topics" />

<html>
<head>
<%@ include file="../include/html_head.jsp"%>
</head>

<body>

<div id="site-wrapper" class="container">
<%@ include file="../include/page_header.jsp"%>
  <span class="span-17">
    <hr/>
    <h2>Topic configuration</h2>
    <display:table name="${topicsCommand.topics}" id="currentTopic">
      <display:column property="topic" />
      <display:column property="queries" />
      <display:column >
        <spring:url var="edit" value="/topic/edit/{topicId}.html" htmlEscape="true" >
          <spring:param name="topicId" value="${currentTopic.topic}"/>
        </spring:url>
        <a href="${edit}"><fmt:message key="topic.list.button.edit" /></a>
      </display:column>
    </display:table>
    <hr class="space"/>
    <hr class="space"/>
    <hr class="space"/>
    <%@ include file="topic_menu.jsp"%>
  </span>
  <span class="span-7 last">
    <hr/>
    <h2>Help</h2>
    The table to your left displays all topics that are being tracked right now in addition to the twitter
    sampling feed. Any changes you make to the topics will take effect in at most 24hours. Topics themselves
    are consist of a name used to reference the respective topic that may consist of a sequence of
    any alpha-numeric characters and a list of query terms that are combined with "OR" before being sent
    to Twitter.
  </span>
  <hr/>


</div>
</body>

</html>
